<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2021/9/2
  Time: 21:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<h1>
    Hello,servlet&browser.
</h1>
<%--如果要在jsp中写Java代码则必须写在脚本段中，例如：--%>
<%
    String name = (String) request.getAttribute("name");
    Integer age = (Integer) request.getAttribute("age");
    List<String> list = (List<String>) request.getAttribute("list");

    System.out.println(name + " " + age + " " + list);
%>
</body>
</html>
